<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<c:if test="${not empty q}">
	<div id="filter">
		<form action="documents">
			<input name="q" type="hidden" value="${q}">
			<c:forEach var="fV" items="${filtrForm}">
				<input type="checkbox" name="format" value="${fV.value}" <c:if test="${fV.checked}">checked</c:if>> ${fV.value} [${fV.count}]
			</c:forEach>
			<button class="btn btn-medium btn-primary" type="submit">Pokaż</button>
		</form>
	</div>
</c:if>